using System;
using System.Reflection;

namespace RaisingStudio.SmallBasicCompiler.Completion
{
	public class CompletionItem
	{
		private string replacementText;
		public string Name
		{
			get;
			set;
		}
		public string DisplayName
		{
			get;
			set;
		}
		public CompletionItemType ItemType
		{
			get;
			set;
		}
		public MemberInfo MemberInfo
		{
			get;
			set;
		}
		public string ReplacementText
		{
			get
			{
				if (this.replacementText != null)
				{
					return this.replacementText;
				}
				return this.DisplayName;
			}
			set
			{
				this.replacementText = value;
			}
		}
		public override string ToString()
		{
			return this.DisplayName;
		}
	}
}
